package com.linksfield.topup.entity.interfaces.anoverview.partner.orderlinechart.response;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
/**
 * 企业按照月份折线数据
 * @author lm
 * @date 2020/7/23 11:05
 */
public class ResponseOrderLineChart implements Serializable {

    private static final long serialVersionUID = -6908070112979688123L;

    @ApiModelProperty(value = "将返回折线图上所需内容：date=月份；orderCount=订单总条数；orderMoney=订单总金额", example = "\"dataByMonth\":[{\"date\":\"2020-01\",\"orderMoney\":\"1344.41\",\"orderCount\":\"59\"},{\"date\":\"2020-02\",\"orderMoney\":\"1329.44\",\"orderCount\":\"60\"},{\"date\":\"2020-03\",\"orderMoney\":\"989.62\",\"orderCount\":\"40\"},{\"date\":\"2020-04\",\"orderMoney\":\"13.99\",\"orderCount\":\"1\"}]", dataType = "String")
    private List<Map<String, Object>> dataByMonth;

    @ApiModelProperty(value = "订单条数合计", example = "", dataType = "String")
    private String countTotal;

    @ApiModelProperty(value = "订单金额合计（$）", example = "", dataType = "String")
    private String moneyTotal;
}
